﻿// MT340




using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.Collections.Generic;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category3
{
  public class MT340 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagSequenceDefinition U0002;
    private static SwiftTagDefinition U0003;
    private static SwiftTagSubItemDefinition U0004;
    private static SwiftTagDefinition U0005;
    private static SwiftTagSubItemDefinition U0006;
    private static SwiftTagDefinition U0007;
    private static SwiftTagSubItemDefinition U0008;
    private static SwiftTagDefinition U000E;
    private static SwiftTagSubItemDefinition U000F;
    private static SwiftTagDefinition U0010;
    private static SwiftTagSubItemDefinition U0011;
    private static SwiftTagDefinition U0012;
    private static SwiftTagDefinition U0013;
    private static SwiftTagSubItemDefinition U0014;
    private static SwiftTagDefinition U0015;
    private static SwiftTagSubItemDefinition U0016;
    private static SwiftTagDefinition U0017;
    private static SwiftTagSubItemDefinition U0018;
    private static SwiftTagChoiceDefinition U0019;
    private static SwiftTagDefinition U001A;
    private static SwiftTagSubItemDefinition U001B;
    private static SwiftTagSubItemDefinition U001C;
    private static SwiftTagDefinition U001D;
    private static SwiftTagSubItemDefinition U001E;
    private static SwiftTagSubItemDefinition U001F;
    private static SwiftTagChoiceDefinition U007F;
    private static SwiftTagDefinition U0080;
    private static SwiftTagSubItemDefinition U0081;
    private static SwiftTagSubItemDefinition U0082;
    private static SwiftTagDefinition U0083;
    private static SwiftTagSubItemDefinition U0084;
    private static SwiftTagSubItemDefinition U0086;
    private static SwiftTagDefinition U0087;
    private static SwiftTagSubItemDefinition U0088;
    private static SwiftTagSubItemDefinition U0089;
    private static SwiftTagSubItemDefinition U008A;
    private static SwiftTagSubItemDefinition U008B;
    private static SwiftTagSubItemDefinition U008C;
    private static SwiftTagSubItemDefinition U008D;
    private static SwiftTagDefinition U008E;
    private static SwiftTagSubItemDefinition U008F;
    private static SwiftTagSequenceDefinition U0090;
    private static SwiftTagDefinition U0091;
    private static SwiftTagSubItemDefinition U0092;
    private static SwiftTagDefinition U0093;
    private static SwiftTagSubItemDefinition U0094;
    private static SwiftTagDefinition U0095;
    private static SwiftTagSubItemDefinition U0096;
    private static SwiftTagSubItemDefinition U0097;
    private static SwiftTagDefinition U0098;
    private static SwiftTagSubItemDefinition U0099;
    private static SwiftTagDefinition U009A;
    private static SwiftTagSubItemDefinition U009B;
    private static SwiftTagDefinition U009C;
    private static SwiftTagSubItemDefinition U009D;
    private static SwiftTagDefinition U009E;
    private static SwiftTagSubItemDefinition U009F;
    private static SwiftTagSequenceDefinition U0001U0002;
    private static SwiftTagDefinition U0002U0002;
    private static SwiftTagSubItemDefinition U0003U0002;
    private static SwiftTagDefinition U0004U0002;
    private static SwiftTagSubItemDefinition U0005U0002;
    private static SwiftTagSequenceDefinition U0006U0002;
    private static SwiftTagDefinition U0007U0002;
    private static SwiftTagSubItemDefinition U0008U0002;
    private static SwiftTagSubItemDefinition U000EU0002;
    private static SwiftTagDefinition U000FU0002;
    private static SwiftTagSubItemDefinition U0010U0002;
    private static SwiftTagDefinition U0011U0002;
    private static SwiftTagSubItemDefinition U0012U0002;
    private static SwiftTagDefinition U0013U0002;
    private static SwiftTagSubItemDefinition U0014U0002;
    private static SwiftTagDefinition U0015U0002;
    private static SwiftTagSubItemDefinition U0016U0002;
    private static SwiftTagSequenceDefinition U0017U0002;
    private static SwiftTagDefinition U0018U0002;
    private static SwiftTagSubItemDefinition U0019U0002;
    private static SwiftTagChoiceDefinition U001AU0002;
    private static SwiftTagDefinition U001BU0002;
    private static SwiftTagSubItemDefinition U001CU0002;
    private static SwiftTagSubItemDefinition U001DU0002;
    private static SwiftTagDefinition U001EU0002;
    private static SwiftTagSubItemDefinition U001FU0002;
    private static SwiftTagSubItemDefinition U007FU0002;
    private static SwiftTagDefinition U0080U0002;
    private static SwiftTagChoiceDefinition U0081U0002;
    private static SwiftTagDefinition U0082U0002;
    private static SwiftTagSubItemDefinition U0083U0002;
    private static SwiftTagSubItemDefinition U0084U0002;
    private static SwiftTagDefinition U0086U0002;
    private static SwiftTagSubItemDefinition U0087U0002;
    private static SwiftTagSubItemDefinition U0088U0002;
    private static SwiftTagDefinition U0089U0002;
    private static SwiftTagChoiceDefinition U008AU0002;
    private static SwiftTagDefinition U008BU0002;
    private static SwiftTagSubItemDefinition U008CU0002;
    private static SwiftTagSubItemDefinition U008DU0002;
    private static SwiftTagDefinition U008EU0002;
    private static SwiftTagSubItemDefinition U008FU0002;
    private static SwiftTagSubItemDefinition U0090U0002;
    private static SwiftTagDefinition U0091U0002;
    private static SwiftTagChoiceDefinition U0092U0002;
    private static SwiftTagDefinition U0093U0002;
    private static SwiftTagSubItemDefinition U0094U0002;
    private static SwiftTagSubItemDefinition U0095U0002;
    private static SwiftTagDefinition U0096U0002;
    private static SwiftTagSubItemDefinition U0097U0002;
    private static SwiftTagSubItemDefinition U0098U0002;
    private static SwiftTagDefinition U0099U0002;
    private static SwiftTagChoiceDefinition U009AU0002;
    private static SwiftTagDefinition U009BU0002;
    private static SwiftTagSubItemDefinition U009CU0002;
    private static SwiftTagSubItemDefinition U009DU0002;
    private static SwiftTagDefinition U009EU0002;
    private static SwiftTagSubItemDefinition U009FU0002;
    private static SwiftTagSubItemDefinition U0001U0003;
    private static SwiftTagDefinition U0002U0003;
    private static SwiftTagSubItemDefinition U0003U0003;
    private static SwiftTagSequenceDefinition U0004U0003;
    private static SwiftTagDefinition U0005U0003;
    private static SwiftTagSubItemDefinition U0006U0003;
    private static SwiftTagChoiceDefinition U0007U0003;
    private static SwiftTagDefinition U0008U0003;
    private static SwiftTagSubItemDefinition U000EU0003;
    private static SwiftTagSubItemDefinition U000FU0003;
    private static SwiftTagDefinition U0010U0003;
    private static SwiftTagSubItemDefinition U0011U0003;
    private static SwiftTagSubItemDefinition U0012U0003;
    private static SwiftTagDefinition U0013U0003;
    private static SwiftTagChoiceDefinition U0014U0003;
    private static SwiftTagDefinition U0015U0003;
    private static SwiftTagSubItemDefinition U0016U0003;
    private static SwiftTagSubItemDefinition U0017U0003;
    private static SwiftTagDefinition U0018U0003;
    private static SwiftTagSubItemDefinition U0019U0003;
    private static SwiftTagSubItemDefinition U001AU0003;
    private static SwiftTagDefinition U001BU0003;
    private static SwiftTagChoiceDefinition U001CU0003;
    private static SwiftTagDefinition U001DU0003;
    private static SwiftTagSubItemDefinition U001EU0003;
    private static SwiftTagSubItemDefinition U001FU0003;
    private static SwiftTagDefinition U007FU0003;
    private static SwiftTagSubItemDefinition U0080U0003;
    private static SwiftTagSubItemDefinition U0081U0003;
    private static SwiftTagDefinition U0082U0003;
    private static SwiftTagChoiceDefinition U0083U0003;
    private static SwiftTagDefinition U0084U0003;
    private static SwiftTagSubItemDefinition U0086U0003;
    private static SwiftTagSubItemDefinition U0087U0003;
    private static SwiftTagDefinition U0088U0003;
    private static SwiftTagSubItemDefinition U0089U0003;
    private static SwiftTagSubItemDefinition U008AU0003;
    private static SwiftTagDefinition U008BU0003;
    private static SwiftTagChoiceDefinition U008CU0003;
    private static SwiftTagDefinition U008DU0003;
    private static SwiftTagSubItemDefinition U008EU0003;
    private static SwiftTagSubItemDefinition U008FU0003;
    private static SwiftTagDefinition U0090U0003;
    private static SwiftTagSubItemDefinition U0091U0003;
    private static SwiftTagSubItemDefinition U0092U0003;
    private static SwiftTagDefinition U0093U0003;
    private static SwiftTagSubItemDefinition U0094U0003;
    private static SwiftTagSequenceDefinition U0095U0003;
    private static SwiftTagDefinition U0096U0003;
    private static SwiftTagSubItemDefinition U0097U0003;
    private static SwiftTagDefinition U0098U0003;
    private static SwiftTagDefinition U0099U0003;
    private static SwiftTagSubItemDefinition U009AU0003;
    private static SwiftTagSubItemDefinition U009BU0003;
    private static SwiftTagSubItemDefinition U009CU0003;
    private static SwiftTagChoiceDefinition U009DU0003;
    private static SwiftTagDefinition U009EU0003;
    private static SwiftTagSubItemDefinition U009FU0003;
    private static SwiftTagSubItemDefinition U0001U0004;
    private static SwiftTagDefinition U0002U0004;
    private static SwiftTagSubItemDefinition U0003U0004;
    private static SwiftTagSubItemDefinition U0004U0004;
    private static SwiftTagDefinition U0005U0004;
    private static SwiftTagSubItemDefinition U0006U0004;
    private static SwiftTagSubItemDefinition U0007U0004;
    private static SwiftTagDefinition U0008U0004;
    private static SwiftTagSubItemDefinition U000EU0004;
    private static SwiftTagDefinition U000FU0004;
    private static SwiftTagSubItemDefinition U0010U0004;
    private static SwiftTagSubItemDefinition U0011U0004;
    private static SwiftTagSubItemDefinition U0012U0004;
    private static SwiftTagSubItemDefinition U0013U0004;
    private static SwiftTagSubItemDefinition U0014U0004;
    private static SwiftTagSubItemDefinition U0015U0004;
    private static SwiftTagSequenceDefinition U0016U0004;
    private static SwiftTagDefinition U0017U0004;
    private static SwiftTagSubItemDefinition U0018U0004;
    private static SwiftTagDefinition U0019U0004;
    private static SwiftTagSubItemDefinition U001AU0004;
    private static SwiftTagSequenceDefinition U001BU0004;
    private static SwiftTagDefinition U001CU0004;
    private static SwiftTagSubItemDefinition U001DU0004;
    private static SwiftTagDefinition U001EU0004;
    private static SwiftTagSubItemDefinition U001FU0004;
    private static SwiftTagChoiceDefinition U007FU0004;
    private static SwiftTagDefinition U0080U0004;
    private static SwiftTagSubItemDefinition U0081U0004;
    private static SwiftTagSubItemDefinition U0082U0004;
    private static SwiftTagDefinition U0083U0004;
    private static SwiftTagSubItemDefinition U0084U0004;
    private static SwiftTagSubItemDefinition U0086U0004;
    private static SwiftTagDefinition U0087U0004;
    private static SwiftTagChoiceDefinition U0088U0004;
    private static SwiftTagDefinition U0089U0004;
    private static SwiftTagSubItemDefinition U008AU0004;
    private static SwiftTagSubItemDefinition U008BU0004;
    private static SwiftTagDefinition U008CU0004;
    private static SwiftTagSubItemDefinition U008DU0004;
    private static SwiftTagSubItemDefinition U008EU0004;
    private static SwiftTagDefinition U008FU0004;
    private static SwiftTagChoiceDefinition U0090U0004;
    private static SwiftTagDefinition U0091U0004;
    private static SwiftTagSubItemDefinition U0092U0004;
    private static SwiftTagSubItemDefinition U0093U0004;
    private static SwiftTagDefinition U0094U0004;
    private static SwiftTagSubItemDefinition U0095U0004;
    private static SwiftTagSubItemDefinition U0096U0004;
    private static SwiftTagDefinition U0097U0004;
    private static SwiftTagChoiceDefinition U0098U0004;
    private static SwiftTagDefinition U0099U0004;
    private static SwiftTagSubItemDefinition U009AU0004;
    private static SwiftTagSubItemDefinition U009BU0004;
    private static SwiftTagDefinition U009CU0004;
    private static SwiftTagSubItemDefinition U009DU0004;
    private static SwiftTagSubItemDefinition U009EU0004;
    private static SwiftTagDefinition U009FU0004;

    [Description("General Information")]
    public MT340.SequenceAClass SequenceA
    {
      get
      {
        return new MT340.SequenceAClass((SwiftElement) this, 0, false);
      }
    }

    [Description("Transaction Details")]
    public MT340.SequenceBClass SequenceB
    {
      get
      {
        return new MT340.SequenceBClass((SwiftElement) this, 0, false);
      }
    }

    [Description("Settlement Instructions for Settlement Amount Payable by Party B")]
    public MT340.SequenceCClass SequenceC
    {
      get
      {
        return new MT340.SequenceCClass((SwiftElement) this, 0, false);
      }
    }

    [Description("Settlement Instructions for Settlement Amount Payable by Party A")]
    public MT340.SequenceDClass SequenceD
    {
      get
      {
        return new MT340.SequenceDClass((SwiftElement) this, 0, false);
      }
    }

    [Description("Additional Information")]
    public MT340.SequenceEClass SequenceE
    {
      get
      {
        MT340.SequenceEClass sequenceEclass = new MT340.SequenceEClass((SwiftElement) this, 0, false);
        if (this.ListTags((SwiftElement) sequenceEclass).Count > 0)
          return sequenceEclass;
        else
          return (MT340.SequenceEClass) null;
      }
    }

    [Description("Additional Amounts")]
    public MT340.SequenceIClass SequenceI
    {
      get
      {
        MT340.SequenceIClass sequenceIclass = new MT340.SequenceIClass((SwiftElement) this, 0, false);
        if (this.ListTags((SwiftElement) sequenceIclass).Count > 0)
          return sequenceIclass;
        else
          return (MT340.SequenceIClass) null;
      }
    }

    public MT340()
      : base(true)
    {
    }

    public MT340(SwiftMessage message)
      : base(message)
    {
    }

    public MT340.SequenceEClass AddSequenceE()
    {
      return this.SequenceE ?? new MT340.SequenceEClass((SwiftElement) this, 0, true);
    }

    public void RemoveSequenceE(MT340.SequenceEClass sequence)
    {
      foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
        this.RemoveTag(tag);
    }

    public MT340.SequenceIClass AddSequenceI()
    {
      return this.SequenceI ?? new MT340.SequenceIClass((SwiftElement) this, 0, true);
    }

    public void RemoveSequenceI(MT340.SequenceIClass sequence)
    {
      foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
        this.RemoveTag(tag);
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT340.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT340.MessageDefinition = new SwiftMessageDefinition("MT340", "Forward Rate Agreement Confirmation");
      MT340.U0002 = new SwiftTagSequenceDefinition("SequenceA", "General Information");
      MT340.U0003 = new SwiftTagDefinition("NewSequence_A_15A", "New Sequence");
      MT340.U0003.TagName = ":15A:";
      MT340.U0004 = new SwiftTagSubItemDefinition("NewSequence", "New Sequence");
      MT340.U0004.Mandatory = false;
      MT340.U0003.Elements.Add((SwiftDefinitionElement) MT340.U0004);
      MT340.U0002.Elements.Add((SwiftDefinitionElement) MT340.U0003);
      MT340.U0005 = new SwiftTagDefinition("SendersReference_A_20", "Senders Reference");
      MT340.U0005.TagName = ":20:";
      MT340.U0006 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT340.U0005.Elements.Add((SwiftDefinitionElement) MT340.U0006);
      MT340.U0002.Elements.Add((SwiftDefinitionElement) MT340.U0005);
      MT340.U0007 = new SwiftTagDefinition("RelatedReference_A_21", "Related Reference");
      MT340.U0007.TagName = ":21:";
      MT340.U0007.Mandatory = false;
      MT340.U0008 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT340.U0007.Elements.Add((SwiftDefinitionElement) MT340.U0008);
      MT340.U0002.Elements.Add((SwiftDefinitionElement) MT340.U0007);
      MT340.U000E = new SwiftTagDefinition("TypeOfOperation_A_22A", "Type of Operation");
      MT340.U000E.TagName = ":22A:";
      MT340.U000F = new SwiftTagSubItemDefinition("Function", "Function");
      MT340.U000E.Elements.Add((SwiftDefinitionElement) MT340.U000F);
      MT340.U0002.Elements.Add((SwiftDefinitionElement) MT340.U000E);
      MT340.U0010 = new SwiftTagDefinition("ScopeOfOperation_A_94A", "Scope Of Operation");
      MT340.U0010.TagName = ":94A:";
      MT340.U0010.Mandatory = false;
      MT340.U0011 = new SwiftTagSubItemDefinition("Scope", "Scope");
      MT340.U0010.Elements.Add((SwiftDefinitionElement) MT340.U0011);
      MT340.U0002.Elements.Add((SwiftDefinitionElement) MT340.U0010);
      MT340.U0012 = new SwiftTagDefinition("CommonReference_A_22C", "Common Reference");
      MT340.U0012.TagName = ":22C:";
      MT340.U0002.Elements.Add((SwiftDefinitionElement) MT340.U0012);
      MT340.U0013 = new SwiftTagDefinition("TypeOfFRA_A_23D", "Type Of FRA");
      MT340.U0013.TagName = ":23D:";
      MT340.U0014 = new SwiftTagSubItemDefinition("Type", "Type");
      MT340.U0013.Elements.Add((SwiftDefinitionElement) MT340.U0014);
      MT340.U0002.Elements.Add((SwiftDefinitionElement) MT340.U0013);
      MT340.U0015 = new SwiftTagDefinition("ContractNumberPartyA_A_21N", "Contract Number Party A");
      MT340.U0015.TagName = ":21N:";
      MT340.U0015.Mandatory = false;
      MT340.U0016 = new SwiftTagSubItemDefinition("ContractNumber", "Contract Number");
      MT340.U0015.Elements.Add((SwiftDefinitionElement) MT340.U0016);
      MT340.U0002.Elements.Add((SwiftDefinitionElement) MT340.U0015);
      MT340.U0017 = new SwiftTagDefinition("ContractNumberPartyB_A_21B", "Contract Number Party B");
      MT340.U0017.TagName = ":21B:";
      MT340.U0017.Mandatory = false;
      MT340.U0018 = new SwiftTagSubItemDefinition("ContractNumber", "Contract Number");
      MT340.U0017.Elements.Add((SwiftDefinitionElement) MT340.U0018);
      MT340.U0002.Elements.Add((SwiftDefinitionElement) MT340.U0017);
      MT340.U0019 = new SwiftTagChoiceDefinition("Choice", "");
      MT340.U0019.Multiple = true;
      MT340.U001A = new SwiftTagDefinition("PartyA_A_82A", "Party A");
      MT340.U001A.TagName = ":82A:";
      MT340.U001B = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U001B.Mandatory = false;
      MT340.U001A.Elements.Add((SwiftDefinitionElement) MT340.U001B);
      MT340.U001C = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT340.U001A.Elements.Add((SwiftDefinitionElement) MT340.U001C);
      MT340.U0019.Elements.Add((SwiftDefinitionElement) MT340.U001A);
      MT340.U001D = new SwiftTagDefinition("PartyA_A_82D", "Party A");
      MT340.U001D.TagName = ":82D:";
      MT340.U001E = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U001E.Mandatory = false;
      MT340.U001D.Elements.Add((SwiftDefinitionElement) MT340.U001E);
      MT340.U001F = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT340.U001D.Elements.Add((SwiftDefinitionElement) MT340.U001F);
      MT340.U0019.Elements.Add((SwiftDefinitionElement) MT340.U001D);
      MT340.U0002.Elements.Add((SwiftDefinitionElement) MT340.U0019);
      MT340.U007F = new SwiftTagChoiceDefinition("Choice", "");
      MT340.U007F.Multiple = true;
      MT340.U0080 = new SwiftTagDefinition("PartyB_A_87A", "Party B");
      MT340.U0080.TagName = ":87A:";
      MT340.U0081 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U0081.Mandatory = false;
      MT340.U0080.Elements.Add((SwiftDefinitionElement) MT340.U0081);
      MT340.U0082 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT340.U0080.Elements.Add((SwiftDefinitionElement) MT340.U0082);
      MT340.U007F.Elements.Add((SwiftDefinitionElement) MT340.U0080);
      MT340.U0083 = new SwiftTagDefinition("PartyB_A_87D", "Party B");
      MT340.U0083.TagName = ":87D:";
      MT340.U0084 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U0084.Mandatory = false;
      MT340.U0083.Elements.Add((SwiftDefinitionElement) MT340.U0084);
      MT340.U0086 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT340.U0083.Elements.Add((SwiftDefinitionElement) MT340.U0086);
      MT340.U007F.Elements.Add((SwiftDefinitionElement) MT340.U0083);
      MT340.U0002.Elements.Add((SwiftDefinitionElement) MT340.U007F);
      MT340.U0087 = new SwiftTagDefinition("TypeDateVersionOfTheAgreement_A_77H", "Type Date Version Of The Agreement");
      MT340.U0087.TagName = ":77H:";
      MT340.U0088 = new SwiftTagSubItemDefinition("TypeDateVersionOfTheAgreement", "Type Date Version Of The Agreement");
      MT340.U0089 = new SwiftTagSubItemDefinition("TypeOfAgreement", "Type Of Agreement");
      MT340.U0088.Elements.Add((SwiftDefinitionElement) MT340.U0089);
      MT340.U008A = new SwiftTagSubItemDefinition("Date", "Date");
      MT340.U008A.Mandatory = false;
      MT340.U008B = new SwiftTagSubItemDefinition("Date_1", "Date");
      MT340.U008A.Elements.Add((SwiftDefinitionElement) MT340.U008B);
      MT340.U0088.Elements.Add((SwiftDefinitionElement) MT340.U008A);
      MT340.U0087.Elements.Add((SwiftDefinitionElement) MT340.U0088);
      MT340.U008C = new SwiftTagSubItemDefinition("Version", "Version");
      MT340.U008C.Mandatory = false;
      MT340.U008D = new SwiftTagSubItemDefinition("Version_1", "Version");
      MT340.U008C.Elements.Add((SwiftDefinitionElement) MT340.U008D);
      MT340.U0087.Elements.Add((SwiftDefinitionElement) MT340.U008C);
      MT340.U0002.Elements.Add((SwiftDefinitionElement) MT340.U0087);
      MT340.U008E = new SwiftTagDefinition("YearOfDefinitions_A_14C", "Year Of Definitions");
      MT340.U008E.TagName = ":14C:";
      MT340.U008E.Mandatory = false;
      MT340.U008F = new SwiftTagSubItemDefinition("Year", "Year");
      MT340.U008E.Elements.Add((SwiftDefinitionElement) MT340.U008F);
      MT340.U0002.Elements.Add((SwiftDefinitionElement) MT340.U008E);
      MT340.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT340.U0002);
      MT340.U0090 = new SwiftTagSequenceDefinition("SequenceB", "Transaction Details");
      MT340.U0091 = new SwiftTagDefinition("NewSequence_B_15B", "New Sequence");
      MT340.U0091.TagName = ":15B:";
      MT340.U0092 = new SwiftTagSubItemDefinition("NewSequence", "New Sequence");
      MT340.U0092.Mandatory = false;
      MT340.U0091.Elements.Add((SwiftDefinitionElement) MT340.U0092);
      MT340.U0090.Elements.Add((SwiftDefinitionElement) MT340.U0091);
      MT340.U0093 = new SwiftTagDefinition("TradeDate_B_30T", "Trade Date");
      MT340.U0093.TagName = ":30T:";
      MT340.U0094 = new SwiftTagSubItemDefinition("Date", "Date");
      MT340.U0093.Elements.Add((SwiftDefinitionElement) MT340.U0094);
      MT340.U0090.Elements.Add((SwiftDefinitionElement) MT340.U0093);
      MT340.U0095 = new SwiftTagDefinition("CurrencyNotionalAmount_B_32B", "Currency Notional Amount");
      MT340.U0095.TagName = ":32B:";
      MT340.U0096 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT340.U0095.Elements.Add((SwiftDefinitionElement) MT340.U0096);
      MT340.U0097 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT340.U0095.Elements.Add((SwiftDefinitionElement) MT340.U0097);
      MT340.U0090.Elements.Add((SwiftDefinitionElement) MT340.U0095);
      MT340.U0098 = new SwiftTagDefinition("EffectiveDate_B_30F", "Effective Date");
      MT340.U0098.TagName = ":30F:";
      MT340.U0099 = new SwiftTagSubItemDefinition("Date", "Date");
      MT340.U0098.Elements.Add((SwiftDefinitionElement) MT340.U0099);
      MT340.U0090.Elements.Add((SwiftDefinitionElement) MT340.U0098);
      MT340.U009A = new SwiftTagDefinition("TerminationDate_B_30P", "Termination Date");
      MT340.U009A.TagName = ":30P:";
      MT340.U009B = new SwiftTagSubItemDefinition("Date", "Date");
      MT340.U009A.Elements.Add((SwiftDefinitionElement) MT340.U009B);
      MT340.U0090.Elements.Add((SwiftDefinitionElement) MT340.U009A);
      MT340.U009C = new SwiftTagDefinition("FixedRate_B_37M", "Fixed Rate");
      MT340.U009C.TagName = ":37M:";
      MT340.U009D = new SwiftTagSubItemDefinition("SignRate", "Sign Rate");
      MT340.U009C.Elements.Add((SwiftDefinitionElement) MT340.U009D);
      MT340.U0090.Elements.Add((SwiftDefinitionElement) MT340.U009C);
      MT340.U009E = new SwiftTagDefinition("FloatingRateOption_B_14F", "Floating Rate Option");
      MT340.U009E.TagName = ":14F:";
      MT340.U009F = new SwiftTagSubItemDefinition("FloatingRateOption", "Floating Rate Option");
      MT340.U009E.Elements.Add((SwiftDefinitionElement) MT340.U009F);
      MT340.U0090.Elements.Add((SwiftDefinitionElement) MT340.U009E);
      MT340.U0001U0002 = new SwiftTagSequenceDefinition("SequenceB1", "AFB and FRABBA Details");
      MT340.U0001U0002.Mandatory = false;
      MT340.U0002U0002 = new SwiftTagDefinition("FixingDate_B1_30V", "Fixing Date");
      MT340.U0002U0002.TagName = ":30V:";
      MT340.U0003U0002 = new SwiftTagSubItemDefinition("Date", "Date");
      MT340.U0002U0002.Elements.Add((SwiftDefinitionElement) MT340.U0003U0002);
      MT340.U0001U0002.Elements.Add((SwiftDefinitionElement) MT340.U0002U0002);
      MT340.U0004U0002 = new SwiftTagDefinition("ContractPeriod_B1_38D", "Contract Period");
      MT340.U0004U0002.TagName = ":38D:";
      MT340.U0005U0002 = new SwiftTagSubItemDefinition("Period", "Period");
      MT340.U0004U0002.Elements.Add((SwiftDefinitionElement) MT340.U0005U0002);
      MT340.U0001U0002.Elements.Add((SwiftDefinitionElement) MT340.U0004U0002);
      MT340.U0090.Elements.Add((SwiftDefinitionElement) MT340.U0001U0002);
      MT340.U0006U0002 = new SwiftTagSequenceDefinition("SequenceB2", "Other Details");
      MT340.U0007U0002 = new SwiftTagDefinition("DesignatedMaturity_B2_38G", "Designated Maturity");
      MT340.U0007U0002.TagName = ":38G:";
      MT340.U0008U0002 = new SwiftTagSubItemDefinition("NumberFromPeriodFrom", "NumberFrom,PeriodFrom");
      MT340.U0007U0002.Elements.Add((SwiftDefinitionElement) MT340.U0008U0002);
      MT340.U000EU0002 = new SwiftTagSubItemDefinition("NumberToPeriodTo", "NumberTo,PeriodTo");
      MT340.U0007U0002.Elements.Add((SwiftDefinitionElement) MT340.U000EU0002);
      MT340.U0006U0002.Elements.Add((SwiftDefinitionElement) MT340.U0007U0002);
      MT340.U000FU0002 = new SwiftTagDefinition("FloatingRateDayCountFraction_B2_14D", "Floating Rate Day Count Fraction");
      MT340.U000FU0002.TagName = ":14D:";
      MT340.U0010U0002 = new SwiftTagSubItemDefinition("DayCountFraction", "Day Count Fraction");
      MT340.U000FU0002.Elements.Add((SwiftDefinitionElement) MT340.U0010U0002);
      MT340.U0006U0002.Elements.Add((SwiftDefinitionElement) MT340.U000FU0002);
      MT340.U0011U0002 = new SwiftTagDefinition("FRADiscounting_B2_17F", "FRA Discounting");
      MT340.U0011U0002.TagName = ":17F:";
      MT340.U0012U0002 = new SwiftTagSubItemDefinition("Flag", "Flag");
      MT340.U0011U0002.Elements.Add((SwiftDefinitionElement) MT340.U0012U0002);
      MT340.U0006U0002.Elements.Add((SwiftDefinitionElement) MT340.U0011U0002);
      MT340.U0013U0002 = new SwiftTagDefinition("NumberOfRepetitions_B2_18A", "Number Of Repetitions");
      MT340.U0013U0002.TagName = ":18A:";
      MT340.U0014U0002 = new SwiftTagSubItemDefinition("Number", "Number");
      MT340.U0013U0002.Elements.Add((SwiftDefinitionElement) MT340.U0014U0002);
      MT340.U0006U0002.Elements.Add((SwiftDefinitionElement) MT340.U0013U0002);
      MT340.U0015U0002 = new SwiftTagDefinition("FinancialCentre_B2_22B", "Financial Centre");
      MT340.U0015U0002.TagName = ":22B:";
      MT340.U0015U0002.Multiple = true;
      MT340.U0016U0002 = new SwiftTagSubItemDefinition("FinancialCentre", "Financial Centre");
      MT340.U0015U0002.Elements.Add((SwiftDefinitionElement) MT340.U0016U0002);
      MT340.U0006U0002.Elements.Add((SwiftDefinitionElement) MT340.U0015U0002);
      MT340.U0090.Elements.Add((SwiftDefinitionElement) MT340.U0006U0002);
      MT340.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT340.U0090);
      MT340.U0017U0002 = new SwiftTagSequenceDefinition("SequenceC", "Settlement Instructions for Settlement Amount Payable by Party B");
      MT340.U0018U0002 = new SwiftTagDefinition("NewSequence_C_15C", "New Sequence");
      MT340.U0018U0002.TagName = ":15C:";
      MT340.U0019U0002 = new SwiftTagSubItemDefinition("NewSequence", "New Sequence");
      MT340.U0019U0002.Mandatory = false;
      MT340.U0018U0002.Elements.Add((SwiftDefinitionElement) MT340.U0019U0002);
      MT340.U0017U0002.Elements.Add((SwiftDefinitionElement) MT340.U0018U0002);
      MT340.U001AU0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT340.U001AU0002.Mandatory = false;
      MT340.U001AU0002.Multiple = true;
      MT340.U001BU0002 = new SwiftTagDefinition("DeliveryAgent_C_53A", "Delivery Agent");
      MT340.U001BU0002.TagName = ":53A:";
      MT340.U001CU0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U001CU0002.Mandatory = false;
      MT340.U001BU0002.Elements.Add((SwiftDefinitionElement) MT340.U001CU0002);
      MT340.U001DU0002 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT340.U001BU0002.Elements.Add((SwiftDefinitionElement) MT340.U001DU0002);
      MT340.U001AU0002.Elements.Add((SwiftDefinitionElement) MT340.U001BU0002);
      MT340.U001EU0002 = new SwiftTagDefinition("DeliveryAgent_C_53D", "Delivery Agent");
      MT340.U001EU0002.TagName = ":53D:";
      MT340.U001FU0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U001FU0002.Mandatory = false;
      MT340.U001EU0002.Elements.Add((SwiftDefinitionElement) MT340.U001FU0002);
      MT340.U007FU0002 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT340.U001EU0002.Elements.Add((SwiftDefinitionElement) MT340.U007FU0002);
      MT340.U001AU0002.Elements.Add((SwiftDefinitionElement) MT340.U001EU0002);
      MT340.U0080U0002 = new SwiftTagDefinition("DeliveryAgent_C_53J", "Delivery Agent");
      MT340.U0080U0002.TagName = ":53J:";
      MT340.U001AU0002.Elements.Add((SwiftDefinitionElement) MT340.U0080U0002);
      MT340.U0017U0002.Elements.Add((SwiftDefinitionElement) MT340.U001AU0002);
      MT340.U0081U0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT340.U0081U0002.Mandatory = false;
      MT340.U0081U0002.Multiple = true;
      MT340.U0082U0002 = new SwiftTagDefinition("Intermediary2_C_86A", "Intermediary 2");
      MT340.U0082U0002.TagName = ":86A:";
      MT340.U0083U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U0083U0002.Mandatory = false;
      MT340.U0082U0002.Elements.Add((SwiftDefinitionElement) MT340.U0083U0002);
      MT340.U0084U0002 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT340.U0082U0002.Elements.Add((SwiftDefinitionElement) MT340.U0084U0002);
      MT340.U0081U0002.Elements.Add((SwiftDefinitionElement) MT340.U0082U0002);
      MT340.U0086U0002 = new SwiftTagDefinition("Intermediary2_C_86D", "Intermediary 2");
      MT340.U0086U0002.TagName = ":86D:";
      MT340.U0087U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U0087U0002.Mandatory = false;
      MT340.U0086U0002.Elements.Add((SwiftDefinitionElement) MT340.U0087U0002);
      MT340.U0088U0002 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT340.U0086U0002.Elements.Add((SwiftDefinitionElement) MT340.U0088U0002);
      MT340.U0081U0002.Elements.Add((SwiftDefinitionElement) MT340.U0086U0002);
      MT340.U0089U0002 = new SwiftTagDefinition("Intermediary2_C_86J", "Intermediary 2");
      MT340.U0089U0002.TagName = ":86J:";
      MT340.U0081U0002.Elements.Add((SwiftDefinitionElement) MT340.U0089U0002);
      MT340.U0017U0002.Elements.Add((SwiftDefinitionElement) MT340.U0081U0002);
      MT340.U008AU0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT340.U008AU0002.Mandatory = false;
      MT340.U008AU0002.Multiple = true;
      MT340.U008BU0002 = new SwiftTagDefinition("Intermediary_C_56A", "Intermediary");
      MT340.U008BU0002.TagName = ":56A:";
      MT340.U008CU0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U008CU0002.Mandatory = false;
      MT340.U008BU0002.Elements.Add((SwiftDefinitionElement) MT340.U008CU0002);
      MT340.U008DU0002 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT340.U008BU0002.Elements.Add((SwiftDefinitionElement) MT340.U008DU0002);
      MT340.U008AU0002.Elements.Add((SwiftDefinitionElement) MT340.U008BU0002);
      MT340.U008EU0002 = new SwiftTagDefinition("Intermediary_C_56D", "Intermediary");
      MT340.U008EU0002.TagName = ":56D:";
      MT340.U008FU0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U008FU0002.Mandatory = false;
      MT340.U008EU0002.Elements.Add((SwiftDefinitionElement) MT340.U008FU0002);
      MT340.U0090U0002 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT340.U008EU0002.Elements.Add((SwiftDefinitionElement) MT340.U0090U0002);
      MT340.U008AU0002.Elements.Add((SwiftDefinitionElement) MT340.U008EU0002);
      MT340.U0091U0002 = new SwiftTagDefinition("Intermediary_C_56J", "Intermediary ");
      MT340.U0091U0002.TagName = ":56J:";
      MT340.U008AU0002.Elements.Add((SwiftDefinitionElement) MT340.U0091U0002);
      MT340.U0017U0002.Elements.Add((SwiftDefinitionElement) MT340.U008AU0002);
      MT340.U0092U0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT340.U0092U0002.Multiple = true;
      MT340.U0093U0002 = new SwiftTagDefinition("ReceivingAgent_C_57A", "Receiving Agent");
      MT340.U0093U0002.TagName = ":57A:";
      MT340.U0094U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U0094U0002.Mandatory = false;
      MT340.U0093U0002.Elements.Add((SwiftDefinitionElement) MT340.U0094U0002);
      MT340.U0095U0002 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT340.U0093U0002.Elements.Add((SwiftDefinitionElement) MT340.U0095U0002);
      MT340.U0092U0002.Elements.Add((SwiftDefinitionElement) MT340.U0093U0002);
      MT340.U0096U0002 = new SwiftTagDefinition("ReceivingAgent_C_57D", "Receiving Agent");
      MT340.U0096U0002.TagName = ":57D:";
      MT340.U0097U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U0097U0002.Mandatory = false;
      MT340.U0096U0002.Elements.Add((SwiftDefinitionElement) MT340.U0097U0002);
      MT340.U0098U0002 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT340.U0096U0002.Elements.Add((SwiftDefinitionElement) MT340.U0098U0002);
      MT340.U0092U0002.Elements.Add((SwiftDefinitionElement) MT340.U0096U0002);
      MT340.U0099U0002 = new SwiftTagDefinition("ReceivingAgent_C_57J", "Receiving Agent");
      MT340.U0099U0002.TagName = ":57J:";
      MT340.U0092U0002.Elements.Add((SwiftDefinitionElement) MT340.U0099U0002);
      MT340.U0017U0002.Elements.Add((SwiftDefinitionElement) MT340.U0092U0002);
      MT340.U009AU0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT340.U009AU0002.Mandatory = false;
      MT340.U009AU0002.Multiple = true;
      MT340.U009BU0002 = new SwiftTagDefinition("BeneficiaryInstitution_C_58A", "Beneficiary Institution");
      MT340.U009BU0002.TagName = ":58A:";
      MT340.U009CU0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U009CU0002.Mandatory = false;
      MT340.U009BU0002.Elements.Add((SwiftDefinitionElement) MT340.U009CU0002);
      MT340.U009DU0002 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT340.U009BU0002.Elements.Add((SwiftDefinitionElement) MT340.U009DU0002);
      MT340.U009AU0002.Elements.Add((SwiftDefinitionElement) MT340.U009BU0002);
      MT340.U009EU0002 = new SwiftTagDefinition("BeneficiaryInstitution_C_58D", "Beneficiary Institution");
      MT340.U009EU0002.TagName = ":58D:";
      MT340.U009FU0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U009FU0002.Mandatory = false;
      MT340.U009EU0002.Elements.Add((SwiftDefinitionElement) MT340.U009FU0002);
      MT340.U0001U0003 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT340.U009EU0002.Elements.Add((SwiftDefinitionElement) MT340.U0001U0003);
      MT340.U009AU0002.Elements.Add((SwiftDefinitionElement) MT340.U009EU0002);
      MT340.U0002U0003 = new SwiftTagDefinition("BeneficiaryInstitution_C_58J", "Beneficiary Institution");
      MT340.U0002U0003.TagName = ":58J:";
      MT340.U0003U0003 = new SwiftTagSubItemDefinition("PartyIdentification2", "Party Identification 1");
      MT340.U0002U0003.Elements.Add((SwiftDefinitionElement) MT340.U0003U0003);
      MT340.U009AU0002.Elements.Add((SwiftDefinitionElement) MT340.U0002U0003);
      MT340.U0017U0002.Elements.Add((SwiftDefinitionElement) MT340.U009AU0002);
      MT340.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT340.U0017U0002);
      MT340.U0004U0003 = new SwiftTagSequenceDefinition("SequenceD", "Settlement Instructions for Settlement Amount Payable by Party A");
      MT340.U0005U0003 = new SwiftTagDefinition("NewSequence_D_15D", "New Sequence");
      MT340.U0005U0003.TagName = ":15D:";
      MT340.U0006U0003 = new SwiftTagSubItemDefinition("NewSequence", "New Sequence");
      MT340.U0006U0003.Mandatory = false;
      MT340.U0005U0003.Elements.Add((SwiftDefinitionElement) MT340.U0006U0003);
      MT340.U0004U0003.Elements.Add((SwiftDefinitionElement) MT340.U0005U0003);
      MT340.U0007U0003 = new SwiftTagChoiceDefinition("Choice", "");
      MT340.U0007U0003.Mandatory = false;
      MT340.U0007U0003.Multiple = true;
      MT340.U0008U0003 = new SwiftTagDefinition("DeliveryAgent_D_53A", "Delivery Agent");
      MT340.U0008U0003.TagName = ":53A:";
      MT340.U000EU0003 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U000EU0003.Mandatory = false;
      MT340.U0008U0003.Elements.Add((SwiftDefinitionElement) MT340.U000EU0003);
      MT340.U000FU0003 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT340.U0008U0003.Elements.Add((SwiftDefinitionElement) MT340.U000FU0003);
      MT340.U0007U0003.Elements.Add((SwiftDefinitionElement) MT340.U0008U0003);
      MT340.U0010U0003 = new SwiftTagDefinition("DeliveryAgent_D_53D", "Delivery Agent");
      MT340.U0010U0003.TagName = ":53D:";
      MT340.U0011U0003 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U0011U0003.Mandatory = false;
      MT340.U0010U0003.Elements.Add((SwiftDefinitionElement) MT340.U0011U0003);
      MT340.U0012U0003 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT340.U0010U0003.Elements.Add((SwiftDefinitionElement) MT340.U0012U0003);
      MT340.U0007U0003.Elements.Add((SwiftDefinitionElement) MT340.U0010U0003);
      MT340.U0013U0003 = new SwiftTagDefinition("DeliveryAgent_D_53J", "Delivery Agent");
      MT340.U0013U0003.TagName = ":53J:";
      MT340.U0007U0003.Elements.Add((SwiftDefinitionElement) MT340.U0013U0003);
      MT340.U0004U0003.Elements.Add((SwiftDefinitionElement) MT340.U0007U0003);
      MT340.U0014U0003 = new SwiftTagChoiceDefinition("Choice", "");
      MT340.U0014U0003.Mandatory = false;
      MT340.U0014U0003.Multiple = true;
      MT340.U0015U0003 = new SwiftTagDefinition("Intermediary2_D_86A", "Intermediary 2");
      MT340.U0015U0003.TagName = ":86A:";
      MT340.U0016U0003 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U0016U0003.Mandatory = false;
      MT340.U0015U0003.Elements.Add((SwiftDefinitionElement) MT340.U0016U0003);
      MT340.U0017U0003 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT340.U0015U0003.Elements.Add((SwiftDefinitionElement) MT340.U0017U0003);
      MT340.U0014U0003.Elements.Add((SwiftDefinitionElement) MT340.U0015U0003);
      MT340.U0018U0003 = new SwiftTagDefinition("Intermediary2_D_86D", "Intermediary 2");
      MT340.U0018U0003.TagName = ":86D:";
      MT340.U0019U0003 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U0019U0003.Mandatory = false;
      MT340.U0018U0003.Elements.Add((SwiftDefinitionElement) MT340.U0019U0003);
      MT340.U001AU0003 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT340.U0018U0003.Elements.Add((SwiftDefinitionElement) MT340.U001AU0003);
      MT340.U0014U0003.Elements.Add((SwiftDefinitionElement) MT340.U0018U0003);
      MT340.U001BU0003 = new SwiftTagDefinition("Intermediary2_D_86J", "Intermediary 2");
      MT340.U001BU0003.TagName = ":86J:";
      MT340.U0014U0003.Elements.Add((SwiftDefinitionElement) MT340.U001BU0003);
      MT340.U0004U0003.Elements.Add((SwiftDefinitionElement) MT340.U0014U0003);
      MT340.U001CU0003 = new SwiftTagChoiceDefinition("Choice", "");
      MT340.U001CU0003.Mandatory = false;
      MT340.U001CU0003.Multiple = true;
      MT340.U001DU0003 = new SwiftTagDefinition("Intermediary_D_56A", "Intermediary");
      MT340.U001DU0003.TagName = ":56A:";
      MT340.U001EU0003 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U001EU0003.Mandatory = false;
      MT340.U001DU0003.Elements.Add((SwiftDefinitionElement) MT340.U001EU0003);
      MT340.U001FU0003 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT340.U001DU0003.Elements.Add((SwiftDefinitionElement) MT340.U001FU0003);
      MT340.U001CU0003.Elements.Add((SwiftDefinitionElement) MT340.U001DU0003);
      MT340.U007FU0003 = new SwiftTagDefinition("Intermediary_D_56D", "Intermediary");
      MT340.U007FU0003.TagName = ":56D:";
      MT340.U0080U0003 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U0080U0003.Mandatory = false;
      MT340.U007FU0003.Elements.Add((SwiftDefinitionElement) MT340.U0080U0003);
      MT340.U0081U0003 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT340.U007FU0003.Elements.Add((SwiftDefinitionElement) MT340.U0081U0003);
      MT340.U001CU0003.Elements.Add((SwiftDefinitionElement) MT340.U007FU0003);
      MT340.U0082U0003 = new SwiftTagDefinition("Intermediary_D_56J", "Intermediary ");
      MT340.U0082U0003.TagName = ":56J:";
      MT340.U001CU0003.Elements.Add((SwiftDefinitionElement) MT340.U0082U0003);
      MT340.U0004U0003.Elements.Add((SwiftDefinitionElement) MT340.U001CU0003);
      MT340.U0083U0003 = new SwiftTagChoiceDefinition("Choice", "");
      MT340.U0083U0003.Multiple = true;
      MT340.U0084U0003 = new SwiftTagDefinition("ReceivingAgent_D_57A", "Receiving Agent");
      MT340.U0084U0003.TagName = ":57A:";
      MT340.U0086U0003 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U0086U0003.Mandatory = false;
      MT340.U0084U0003.Elements.Add((SwiftDefinitionElement) MT340.U0086U0003);
      MT340.U0087U0003 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT340.U0084U0003.Elements.Add((SwiftDefinitionElement) MT340.U0087U0003);
      MT340.U0083U0003.Elements.Add((SwiftDefinitionElement) MT340.U0084U0003);
      MT340.U0088U0003 = new SwiftTagDefinition("ReceivingAgent_D_57D", "Receiving Agent");
      MT340.U0088U0003.TagName = ":57D:";
      MT340.U0089U0003 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U0089U0003.Mandatory = false;
      MT340.U0088U0003.Elements.Add((SwiftDefinitionElement) MT340.U0089U0003);
      MT340.U008AU0003 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT340.U0088U0003.Elements.Add((SwiftDefinitionElement) MT340.U008AU0003);
      MT340.U0083U0003.Elements.Add((SwiftDefinitionElement) MT340.U0088U0003);
      MT340.U008BU0003 = new SwiftTagDefinition("ReceivingAgent_D_57J", "Receiving Agent");
      MT340.U008BU0003.TagName = ":57J:";
      MT340.U0083U0003.Elements.Add((SwiftDefinitionElement) MT340.U008BU0003);
      MT340.U0004U0003.Elements.Add((SwiftDefinitionElement) MT340.U0083U0003);
      MT340.U008CU0003 = new SwiftTagChoiceDefinition("Choice", "");
      MT340.U008CU0003.Mandatory = false;
      MT340.U008CU0003.Multiple = true;
      MT340.U008DU0003 = new SwiftTagDefinition("BeneficiaryInstitution_D_58A", "Beneficiary Institution");
      MT340.U008DU0003.TagName = ":58A:";
      MT340.U008EU0003 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U008EU0003.Mandatory = false;
      MT340.U008DU0003.Elements.Add((SwiftDefinitionElement) MT340.U008EU0003);
      MT340.U008FU0003 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT340.U008DU0003.Elements.Add((SwiftDefinitionElement) MT340.U008FU0003);
      MT340.U008CU0003.Elements.Add((SwiftDefinitionElement) MT340.U008DU0003);
      MT340.U0090U0003 = new SwiftTagDefinition("BeneficiaryInstitution_D_58D", "Beneficiary Institution");
      MT340.U0090U0003.TagName = ":58D:";
      MT340.U0091U0003 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U0091U0003.Mandatory = false;
      MT340.U0090U0003.Elements.Add((SwiftDefinitionElement) MT340.U0091U0003);
      MT340.U0092U0003 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT340.U0090U0003.Elements.Add((SwiftDefinitionElement) MT340.U0092U0003);
      MT340.U008CU0003.Elements.Add((SwiftDefinitionElement) MT340.U0090U0003);
      MT340.U0093U0003 = new SwiftTagDefinition("BeneficiaryInstitution_D_58J", "Beneficiary Institution");
      MT340.U0093U0003.TagName = ":58J:";
      MT340.U0094U0003 = new SwiftTagSubItemDefinition("PartyIdentification2", "Party Identification 1");
      MT340.U0093U0003.Elements.Add((SwiftDefinitionElement) MT340.U0094U0003);
      MT340.U008CU0003.Elements.Add((SwiftDefinitionElement) MT340.U0093U0003);
      MT340.U0004U0003.Elements.Add((SwiftDefinitionElement) MT340.U008CU0003);
      MT340.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT340.U0004U0003);
      MT340.U0095U0003 = new SwiftTagSequenceDefinition("SequenceE", "Additional Information");
      MT340.U0095U0003.Mandatory = false;
      MT340.U0096U0003 = new SwiftTagDefinition("NewSequence_E_15E", "New Sequence");
      MT340.U0096U0003.TagName = ":15E:";
      MT340.U0097U0003 = new SwiftTagSubItemDefinition("NewSequence", "New Sequence");
      MT340.U0097U0003.Mandatory = false;
      MT340.U0096U0003.Elements.Add((SwiftDefinitionElement) MT340.U0097U0003);
      MT340.U0095U0003.Elements.Add((SwiftDefinitionElement) MT340.U0096U0003);
      MT340.U0098U0003 = new SwiftTagDefinition("ContactInformation_E_29A", "Contact Information");
      MT340.U0098U0003.TagName = ":29A:";
      MT340.U0098U0003.Mandatory = false;
      MT340.U0095U0003.Elements.Add((SwiftDefinitionElement) MT340.U0098U0003);
      MT340.U0099U0003 = new SwiftTagDefinition("DealingMethod_E_24D", "Dealing Method");
      MT340.U0099U0003.TagName = ":24D:";
      MT340.U0099U0003.Mandatory = false;
      MT340.U009AU0003 = new SwiftTagSubItemDefinition("Code", "Code");
      MT340.U0099U0003.Elements.Add((SwiftDefinitionElement) MT340.U009AU0003);
      MT340.U009BU0003 = new SwiftTagSubItemDefinition("AdditionalInformation", "Additional Information");
      MT340.U009BU0003.Mandatory = false;
      MT340.U009CU0003 = new SwiftTagSubItemDefinition("AdditionalInformation_1", "Additional Information");
      MT340.U009BU0003.Elements.Add((SwiftDefinitionElement) MT340.U009CU0003);
      MT340.U0099U0003.Elements.Add((SwiftDefinitionElement) MT340.U009BU0003);
      MT340.U0095U0003.Elements.Add((SwiftDefinitionElement) MT340.U0099U0003);
      MT340.U009DU0003 = new SwiftTagChoiceDefinition("Choice", "");
      MT340.U009DU0003.Mandatory = false;
      MT340.U009DU0003.Multiple = true;
      MT340.U009EU0003 = new SwiftTagDefinition("BrokerIdentification_E_88A", "Broker Identification");
      MT340.U009EU0003.TagName = ":88A:";
      MT340.U009FU0003 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U009FU0003.Mandatory = false;
      MT340.U009EU0003.Elements.Add((SwiftDefinitionElement) MT340.U009FU0003);
      MT340.U0001U0004 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT340.U009EU0003.Elements.Add((SwiftDefinitionElement) MT340.U0001U0004);
      MT340.U009DU0003.Elements.Add((SwiftDefinitionElement) MT340.U009EU0003);
      MT340.U0002U0004 = new SwiftTagDefinition("BrokerIdentification_E_88D", "Broker Identification");
      MT340.U0002U0004.TagName = ":88D:";
      MT340.U0003U0004 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U0003U0004.Mandatory = false;
      MT340.U0002U0004.Elements.Add((SwiftDefinitionElement) MT340.U0003U0004);
      MT340.U0004U0004 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT340.U0002U0004.Elements.Add((SwiftDefinitionElement) MT340.U0004U0004);
      MT340.U009DU0003.Elements.Add((SwiftDefinitionElement) MT340.U0002U0004);
      MT340.U0095U0003.Elements.Add((SwiftDefinitionElement) MT340.U009DU0003);
      MT340.U0005U0004 = new SwiftTagDefinition("BrokersCommission_E_71F", "Brokers Commission");
      MT340.U0005U0004.TagName = ":71F:";
      MT340.U0005U0004.Mandatory = false;
      MT340.U0006U0004 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT340.U0005U0004.Elements.Add((SwiftDefinitionElement) MT340.U0006U0004);
      MT340.U0007U0004 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT340.U0005U0004.Elements.Add((SwiftDefinitionElement) MT340.U0007U0004);
      MT340.U0095U0003.Elements.Add((SwiftDefinitionElement) MT340.U0005U0004);
      MT340.U0008U0004 = new SwiftTagDefinition("BrokersReference_E_21G", "Brokers Reference");
      MT340.U0008U0004.TagName = ":21G:";
      MT340.U0008U0004.Mandatory = false;
      MT340.U000EU0004 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT340.U0008U0004.Elements.Add((SwiftDefinitionElement) MT340.U000EU0004);
      MT340.U0095U0003.Elements.Add((SwiftDefinitionElement) MT340.U0008U0004);
      MT340.U000FU0004 = new SwiftTagDefinition("SenderToReceiverInformation_E_72", "Sender To Receiver Information");
      MT340.U000FU0004.TagName = ":72:";
      MT340.U000FU0004.Mandatory = false;
      MT340.U0010U0004 = new SwiftTagSubItemDefinition("Line1", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x]");
      MT340.U000FU0004.Elements.Add((SwiftDefinitionElement) MT340.U0010U0004);
      MT340.U0011U0004 = new SwiftTagSubItemDefinition("Line2", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT340.U0011U0004.Mandatory = false;
      MT340.U000FU0004.Elements.Add((SwiftDefinitionElement) MT340.U0011U0004);
      MT340.U0012U0004 = new SwiftTagSubItemDefinition("Line3", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT340.U0012U0004.Mandatory = false;
      MT340.U000FU0004.Elements.Add((SwiftDefinitionElement) MT340.U0012U0004);
      MT340.U0013U0004 = new SwiftTagSubItemDefinition("Line4", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT340.U0013U0004.Mandatory = false;
      MT340.U000FU0004.Elements.Add((SwiftDefinitionElement) MT340.U0013U0004);
      MT340.U0014U0004 = new SwiftTagSubItemDefinition("Line5", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT340.U0014U0004.Mandatory = false;
      MT340.U000FU0004.Elements.Add((SwiftDefinitionElement) MT340.U0014U0004);
      MT340.U0015U0004 = new SwiftTagSubItemDefinition("Line6", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT340.U0015U0004.Mandatory = false;
      MT340.U000FU0004.Elements.Add((SwiftDefinitionElement) MT340.U0015U0004);
      MT340.U0095U0003.Elements.Add((SwiftDefinitionElement) MT340.U000FU0004);
      MT340.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT340.U0095U0003);
      MT340.U0016U0004 = new SwiftTagSequenceDefinition("SequenceI", "Additional Amounts");
      MT340.U0016U0004.Mandatory = false;
      MT340.U0017U0004 = new SwiftTagDefinition("NewSequence_F_15F", "New Sequence");
      MT340.U0017U0004.TagName = ":15F:";
      MT340.U0018U0004 = new SwiftTagSubItemDefinition("NewSequence", "New Sequence");
      MT340.U0018U0004.Mandatory = false;
      MT340.U0017U0004.Elements.Add((SwiftDefinitionElement) MT340.U0018U0004);
      MT340.U0016U0004.Elements.Add((SwiftDefinitionElement) MT340.U0017U0004);
      MT340.U0019U0004 = new SwiftTagDefinition("NumberofRepetitions_F_18A", "Number of Repetitions");
      MT340.U0019U0004.TagName = ":18A:";
      MT340.U001AU0004 = new SwiftTagSubItemDefinition("Number", "Number");
      MT340.U0019U0004.Elements.Add((SwiftDefinitionElement) MT340.U001AU0004);
      MT340.U0016U0004.Elements.Add((SwiftDefinitionElement) MT340.U0019U0004);
      MT340.U001BU0004 = new SwiftTagSequenceDefinition("Sequence", "Payment Date");
      MT340.U001BU0004.Multiple = true;
      MT340.U001CU0004 = new SwiftTagDefinition("PaymentDate_F_30F", "Payment Date");
      MT340.U001CU0004.TagName = ":30F:";
      MT340.U001DU0004 = new SwiftTagSubItemDefinition("Date", "Date");
      MT340.U001CU0004.Elements.Add((SwiftDefinitionElement) MT340.U001DU0004);
      MT340.U001BU0004.Elements.Add((SwiftDefinitionElement) MT340.U001CU0004);
      MT340.U001EU0004 = new SwiftTagDefinition("CurrencyPaymentAmount_F_32H", "Currency, Payment Amount ");
      MT340.U001EU0004.TagName = ":32H:";
      MT340.U001FU0004 = new SwiftTagSubItemDefinition("SignCodeAmount", "Sign Currency And Amount");
      MT340.U001EU0004.Elements.Add((SwiftDefinitionElement) MT340.U001FU0004);
      MT340.U001BU0004.Elements.Add((SwiftDefinitionElement) MT340.U001EU0004);
      MT340.U0016U0004.Elements.Add((SwiftDefinitionElement) MT340.U001BU0004);
      MT340.U007FU0004 = new SwiftTagChoiceDefinition("Choice", "");
      MT340.U007FU0004.Mandatory = false;
      MT340.U007FU0004.Multiple = true;
      MT340.U0080U0004 = new SwiftTagDefinition("DeliveryAgent_F_53A", "Delivery Agent");
      MT340.U0080U0004.TagName = ":53A:";
      MT340.U0081U0004 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U0081U0004.Mandatory = false;
      MT340.U0080U0004.Elements.Add((SwiftDefinitionElement) MT340.U0081U0004);
      MT340.U0082U0004 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT340.U0080U0004.Elements.Add((SwiftDefinitionElement) MT340.U0082U0004);
      MT340.U007FU0004.Elements.Add((SwiftDefinitionElement) MT340.U0080U0004);
      MT340.U0083U0004 = new SwiftTagDefinition("DeliveryAgent_F_53D", "Delivery Agent");
      MT340.U0083U0004.TagName = ":53D:";
      MT340.U0084U0004 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U0084U0004.Mandatory = false;
      MT340.U0083U0004.Elements.Add((SwiftDefinitionElement) MT340.U0084U0004);
      MT340.U0086U0004 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT340.U0083U0004.Elements.Add((SwiftDefinitionElement) MT340.U0086U0004);
      MT340.U007FU0004.Elements.Add((SwiftDefinitionElement) MT340.U0083U0004);
      MT340.U0087U0004 = new SwiftTagDefinition("DeliveryAgent_F_53J", "Delivery Agent");
      MT340.U0087U0004.TagName = ":53J:";
      MT340.U007FU0004.Elements.Add((SwiftDefinitionElement) MT340.U0087U0004);
      MT340.U0016U0004.Elements.Add((SwiftDefinitionElement) MT340.U007FU0004);
      MT340.U0088U0004 = new SwiftTagChoiceDefinition("Choice", "");
      MT340.U0088U0004.Mandatory = false;
      MT340.U0088U0004.Multiple = true;
      MT340.U0089U0004 = new SwiftTagDefinition("Intermediary2_F_86A", "Intermediary 2");
      MT340.U0089U0004.TagName = ":86A:";
      MT340.U008AU0004 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U008AU0004.Mandatory = false;
      MT340.U0089U0004.Elements.Add((SwiftDefinitionElement) MT340.U008AU0004);
      MT340.U008BU0004 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT340.U0089U0004.Elements.Add((SwiftDefinitionElement) MT340.U008BU0004);
      MT340.U0088U0004.Elements.Add((SwiftDefinitionElement) MT340.U0089U0004);
      MT340.U008CU0004 = new SwiftTagDefinition("Intermediary2_F_86D", "Intermediary 2");
      MT340.U008CU0004.TagName = ":86D:";
      MT340.U008DU0004 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U008DU0004.Mandatory = false;
      MT340.U008CU0004.Elements.Add((SwiftDefinitionElement) MT340.U008DU0004);
      MT340.U008EU0004 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT340.U008CU0004.Elements.Add((SwiftDefinitionElement) MT340.U008EU0004);
      MT340.U0088U0004.Elements.Add((SwiftDefinitionElement) MT340.U008CU0004);
      MT340.U008FU0004 = new SwiftTagDefinition("Intermediary2_F_86J", "Intermediary 2");
      MT340.U008FU0004.TagName = ":86J:";
      MT340.U0088U0004.Elements.Add((SwiftDefinitionElement) MT340.U008FU0004);
      MT340.U0016U0004.Elements.Add((SwiftDefinitionElement) MT340.U0088U0004);
      MT340.U0090U0004 = new SwiftTagChoiceDefinition("Choice", "");
      MT340.U0090U0004.Mandatory = false;
      MT340.U0090U0004.Multiple = true;
      MT340.U0091U0004 = new SwiftTagDefinition("Intermediary_F_56A", "Intermediary");
      MT340.U0091U0004.TagName = ":56A:";
      MT340.U0092U0004 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U0092U0004.Mandatory = false;
      MT340.U0091U0004.Elements.Add((SwiftDefinitionElement) MT340.U0092U0004);
      MT340.U0093U0004 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT340.U0091U0004.Elements.Add((SwiftDefinitionElement) MT340.U0093U0004);
      MT340.U0090U0004.Elements.Add((SwiftDefinitionElement) MT340.U0091U0004);
      MT340.U0094U0004 = new SwiftTagDefinition("Intermediary_F_56D", "Intermediary");
      MT340.U0094U0004.TagName = ":56D:";
      MT340.U0095U0004 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U0095U0004.Mandatory = false;
      MT340.U0094U0004.Elements.Add((SwiftDefinitionElement) MT340.U0095U0004);
      MT340.U0096U0004 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT340.U0094U0004.Elements.Add((SwiftDefinitionElement) MT340.U0096U0004);
      MT340.U0090U0004.Elements.Add((SwiftDefinitionElement) MT340.U0094U0004);
      MT340.U0097U0004 = new SwiftTagDefinition("Intermediary_F_56J", "Intermediary");
      MT340.U0097U0004.TagName = ":56J:";
      MT340.U0090U0004.Elements.Add((SwiftDefinitionElement) MT340.U0097U0004);
      MT340.U0016U0004.Elements.Add((SwiftDefinitionElement) MT340.U0090U0004);
      MT340.U0098U0004 = new SwiftTagChoiceDefinition("Choice", "");
      MT340.U0098U0004.Multiple = true;
      MT340.U0099U0004 = new SwiftTagDefinition("ReceivingAgent_F_57A", "Receiving Agent");
      MT340.U0099U0004.TagName = ":57A:";
      MT340.U009AU0004 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U009AU0004.Mandatory = false;
      MT340.U0099U0004.Elements.Add((SwiftDefinitionElement) MT340.U009AU0004);
      MT340.U009BU0004 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT340.U0099U0004.Elements.Add((SwiftDefinitionElement) MT340.U009BU0004);
      MT340.U0098U0004.Elements.Add((SwiftDefinitionElement) MT340.U0099U0004);
      MT340.U009CU0004 = new SwiftTagDefinition("ReceivingAgent_F_57D", "Receiving Agent");
      MT340.U009CU0004.TagName = ":57D:";
      MT340.U009DU0004 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT340.U009DU0004.Mandatory = false;
      MT340.U009CU0004.Elements.Add((SwiftDefinitionElement) MT340.U009DU0004);
      MT340.U009EU0004 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT340.U009CU0004.Elements.Add((SwiftDefinitionElement) MT340.U009EU0004);
      MT340.U0098U0004.Elements.Add((SwiftDefinitionElement) MT340.U009CU0004);
      MT340.U009FU0004 = new SwiftTagDefinition("ReceivingAgent_F_57J", "Receiving Agent");
      MT340.U009FU0004.TagName = ":57J:";
      MT340.U0098U0004.Elements.Add((SwiftDefinitionElement) MT340.U009FU0004);
      MT340.U0016U0004.Elements.Add((SwiftDefinitionElement) MT340.U0098U0004);
      MT340.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT340.U0016U0004);
    }

    public class SequenceAClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT340.U0002;
        }
      }

      [Description("New Sequence")]
      public Tag15A NewSequence_A_15A
      {
        get
        {
          return new Tag15A((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0003);
        }
      }

      [Description("New Sequence")]
      public Tag15A Tag15A_NewSequence_A
      {
        get
        {
          return this.NewSequence_A_15A;
        }
      }

      [Description("Senders Reference")]
      public Tag20 SendersReference_A_20
      {
        get
        {
          return new Tag20((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0005);
        }
      }

      [Description("Senders Reference")]
      public Tag20 Tag20_SendersReference_A
      {
        get
        {
          return this.SendersReference_A_20;
        }
      }

      [Description("Related Reference")]
      public Tag21 RelatedReference_A_21
      {
        get
        {
          return new Tag21((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0007);
        }
      }

      [Description("Related Reference")]
      public Tag21 Tag21_RelatedReference_A
      {
        get
        {
          return this.RelatedReference_A_21;
        }
      }

      [Description("Type of Operation")]
      public Tag22A TypeOfOperation_A_22A
      {
        get
        {
          return new Tag22A((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U000E);
        }
      }

      [Description("Type of Operation")]
      public Tag22A Tag22A_TypeOfOperation_A
      {
        get
        {
          return this.TypeOfOperation_A_22A;
        }
      }

      [Description("Scope Of Operation")]
      public Tag94A ScopeOfOperation_A_94A
      {
        get
        {
          return new Tag94A((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0010);
        }
      }

      [Description("Scope Of Operation")]
      public Tag94A Tag94A_ScopeOfOperation_A
      {
        get
        {
          return this.ScopeOfOperation_A_94A;
        }
      }

      [Description("Common Reference")]
      public Tag22C CommonReference_A_22C
      {
        get
        {
          return new Tag22C((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0012);
        }
      }

      [Description("Common Reference")]
      public Tag22C Tag22C_CommonReference_A
      {
        get
        {
          return this.CommonReference_A_22C;
        }
      }

      [Description("Type Of FRA")]
      public Tag23D TypeOfFRA_A_23D
      {
        get
        {
          return new Tag23D((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0013);
        }
      }

      [Description("Type Of FRA")]
      public Tag23D Tag23D_TypeOfFRA_A
      {
        get
        {
          return this.TypeOfFRA_A_23D;
        }
      }

      [Description("Contract Number Party A")]
      public MT340.SequenceAClass.Tag21N ContractNumberPartyA_A_21N
      {
        get
        {
          return new MT340.SequenceAClass.Tag21N((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0015);
        }
      }

      [Description("Contract Number Party A")]
      public MT340.SequenceAClass.Tag21N Tag21N_ContractNumberPartyA_A
      {
        get
        {
          return this.ContractNumberPartyA_A_21N;
        }
      }

      [Description("Contract Number Party B")]
      public MT340.SequenceAClass.Tag21B ContractNumberPartyB_A_21B
      {
        get
        {
          return new MT340.SequenceAClass.Tag21B((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0017);
        }
      }

      [Description("Contract Number Party B")]
      public MT340.SequenceAClass.Tag21B Tag21B_ContractNumberPartyB_A
      {
        get
        {
          return this.ContractNumberPartyB_A_21B;
        }
      }

      [Description("Party A")]
      public Tag82A PartyA_A_82A
      {
        get
        {
          return new Tag82A((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U001A);
        }
      }

      [Description("Party A")]
      public Tag82A Tag82A_PartyA_A
      {
        get
        {
          return this.PartyA_A_82A;
        }
      }

      [Description("Party A")]
      public Tag82D PartyA_A_82D
      {
        get
        {
          return new Tag82D((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U001D);
        }
      }

      [Description("Party A")]
      public Tag82D Tag82D_PartyA_A
      {
        get
        {
          return this.PartyA_A_82D;
        }
      }

      [Description("Party B")]
      public Tag87A PartyB_A_87A
      {
        get
        {
          return new Tag87A((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0080);
        }
      }

      [Description("Party B")]
      public Tag87A Tag87A_PartyB_A
      {
        get
        {
          return this.PartyB_A_87A;
        }
      }

      [Description("Party B")]
      public Tag87D PartyB_A_87D
      {
        get
        {
          return new Tag87D((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0083);
        }
      }

      [Description("Party B")]
      public Tag87D Tag87D_PartyB_A
      {
        get
        {
          return this.PartyB_A_87D;
        }
      }

      [Description("Type Date Version Of The Agreement")]
      public Tag77H TypeDateVersionOfTheAgreement_A_77H
      {
        get
        {
          return new Tag77H((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0087);
        }
      }

      [Description("Type Date Version Of The Agreement")]
      public Tag77H Tag77H_TypeDateVersionOfTheAgreement_A
      {
        get
        {
          return this.TypeDateVersionOfTheAgreement_A_77H;
        }
      }

      [Description("Year Of Definitions")]
      public Tag14C YearOfDefinitions_A_14C
      {
        get
        {
          return new Tag14C((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U008E);
        }
      }

      [Description("Year Of Definitions")]
      public Tag14C Tag14C_YearOfDefinitions_A
      {
        get
        {
          return this.YearOfDefinitions_A_14C;
        }
      }

      internal SequenceAClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public class Tag21N : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("21N", value);
          }
        }

        internal Tag21N(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }

      public class Tag21B : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("21B", value);
          }
        }

        internal Tag21B(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }
    }

    public class SequenceBClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT340.U0090;
        }
      }

      [Description("New Sequence")]
      public Tag15B NewSequence_B_15B
      {
        get
        {
          return new Tag15B((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0091);
        }
      }

      [Description("New Sequence")]
      public Tag15B Tag15B_NewSequence_B
      {
        get
        {
          return this.NewSequence_B_15B;
        }
      }

      [Description("Trade Date")]
      public Tag30T TradeDate_B_30T
      {
        get
        {
          return new Tag30T((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0093);
        }
      }

      [Description("Trade Date")]
      public Tag30T Tag30T_TradeDate_B
      {
        get
        {
          return this.TradeDate_B_30T;
        }
      }

      [Description("Currency Notional Amount")]
      public Tag32B CurrencyNotionalAmount_B_32B
      {
        get
        {
          return new Tag32B((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0095);
        }
      }

      [Description("Currency Notional Amount")]
      public Tag32B Tag32B_CurrencyNotionalAmount_B
      {
        get
        {
          return this.CurrencyNotionalAmount_B_32B;
        }
      }

      [Description("Effective Date")]
      public Tag30F EffectiveDate_B_30F
      {
        get
        {
          return new Tag30F((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0098);
        }
      }

      [Description("Effective Date")]
      public Tag30F Tag30F_EffectiveDate_B
      {
        get
        {
          return this.EffectiveDate_B_30F;
        }
      }

      [Description("Termination Date")]
      public Tag30P TerminationDate_B_30P
      {
        get
        {
          return new Tag30P((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U009A);
        }
      }

      [Description("Termination Date")]
      public Tag30P Tag30P_TerminationDate_B
      {
        get
        {
          return this.TerminationDate_B_30P;
        }
      }

      [Description("Fixed Rate")]
      public Tag37M FixedRate_B_37M
      {
        get
        {
          return new Tag37M((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U009C);
        }
      }

      [Description("Fixed Rate")]
      public Tag37M Tag37M_FixedRate_B
      {
        get
        {
          return this.FixedRate_B_37M;
        }
      }

      [Description("Floating Rate Option")]
      public Tag14F FloatingRateOption_B_14F
      {
        get
        {
          return new Tag14F((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U009E);
        }
      }

      [Description("Floating Rate Option")]
      public Tag14F Tag14F_FloatingRateOption_B
      {
        get
        {
          return this.FloatingRateOption_B_14F;
        }
      }

      [Description("AFB and FRABBA Details")]
      public MT340.SequenceBClass.SequenceB1Class SequenceB1
      {
        get
        {
          MT340.SequenceBClass.SequenceB1Class sequenceB1Class = new MT340.SequenceBClass.SequenceB1Class((SwiftElement) this, 0, false);
          if (this.ListTags((SwiftElement) sequenceB1Class).Count > 0)
            return sequenceB1Class;
          else
            return (MT340.SequenceBClass.SequenceB1Class) null;
        }
      }

      [Description("Other Details")]
      public MT340.SequenceBClass.SequenceB2Class SequenceB2
      {
        get
        {
          return new MT340.SequenceBClass.SequenceB2Class((SwiftElement) this, 0, false);
        }
      }

      internal SequenceBClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public MT340.SequenceBClass.SequenceB1Class AddSequenceB1()
      {
        return this.SequenceB1 ?? new MT340.SequenceBClass.SequenceB1Class((SwiftElement) this, 0, true);
      }

      public void RemoveSequenceB1(MT340.SequenceBClass.SequenceB1Class sequence)
      {
        foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
          this.RemoveTag(tag);
      }

      public class SequenceB1Class : SwiftTagSequence
      {
        internal override SwiftDefinitionElement Definition
        {
          get
          {
            return (SwiftDefinitionElement) MT340.U0001U0002;
          }
        }

        [Description("Fixing Date")]
        public Tag30V FixingDate_B1_30V
        {
          get
          {
            return new Tag30V((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0002U0002);
          }
        }

        [Description("Fixing Date")]
        public Tag30V Tag30V_FixingDate_B1
        {
          get
          {
            return this.FixingDate_B1_30V;
          }
        }

        [Description("Contract Period")]
        public Tag38D ContractPeriod_B1_38D
        {
          get
          {
            return new Tag38D((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0004U0002);
          }
        }

        [Description("Contract Period")]
        public Tag38D Tag38D_ContractPeriod_B1
        {
          get
          {
            return this.ContractPeriod_B1_38D;
          }
        }

        internal SequenceB1Class(SwiftElement parent, int index, bool createTags)
          : base(parent, index, createTags)
        {
        }
      }

      public class SequenceB2Class : SwiftTagSequence
      {
        internal override SwiftDefinitionElement Definition
        {
          get
          {
            return (SwiftDefinitionElement) MT340.U0006U0002;
          }
        }

        [Description("Designated Maturity")]
        public Tag38G DesignatedMaturity_B2_38G
        {
          get
          {
            return new Tag38G((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0007U0002);
          }
        }

        [Description("Designated Maturity")]
        public Tag38G Tag38G_DesignatedMaturity_B2
        {
          get
          {
            return this.DesignatedMaturity_B2_38G;
          }
        }

        [Description("Floating Rate Day Count Fraction")]
        public Tag14D FloatingRateDayCountFraction_B2_14D
        {
          get
          {
            return new Tag14D((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U000FU0002);
          }
        }

        [Description("Floating Rate Day Count Fraction")]
        public Tag14D Tag14D_FloatingRateDayCountFraction_B2
        {
          get
          {
            return this.FloatingRateDayCountFraction_B2_14D;
          }
        }

        [Description("FRA Discounting")]
        public MT340.SequenceBClass.SequenceB2Class.Tag17F FRADiscounting_B2_17F
        {
          get
          {
            return new MT340.SequenceBClass.SequenceB2Class.Tag17F((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0011U0002);
          }
        }

        [Description("FRA Discounting")]
        public MT340.SequenceBClass.SequenceB2Class.Tag17F Tag17F_FRADiscounting_B2
        {
          get
          {
            return this.FRADiscounting_B2_17F;
          }
        }

        [Description("Number Of Repetitions")]
        public Tag18A NumberOfRepetitions_B2_18A
        {
          get
          {
            return new Tag18A((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0013U0002);
          }
        }

        [Description("Number Of Repetitions")]
        public Tag18A Tag18A_NumberOfRepetitions_B2
        {
          get
          {
            return this.NumberOfRepetitions_B2_18A;
          }
        }

        [Description("Financial Centre")]
        public MT340.SequenceBClass.SequenceB2Class.Tag22B[] FinancialCentre_B2_22B
        {
          get
          {
            int index = -1;
            List<MT340.SequenceBClass.SequenceB2Class.Tag22B> list = new List<MT340.SequenceBClass.SequenceB2Class.Tag22B>();
            int count;
            do
            {
              ++index;
              MT340.SequenceBClass.SequenceB2Class.Tag22B tag22B = new MT340.SequenceBClass.SequenceB2Class.Tag22B((SwiftElement) this, index, (SwiftDefinitionElement) MT340.U0015U0002);
              count = this.ListTags((SwiftElement) tag22B).Count;
              if (count > 0)
                list.Add(tag22B);
            }
            while (count > 0);
            return list.ToArray();
          }
        }

        [Description("Financial Centre")]
        public MT340.SequenceBClass.SequenceB2Class.Tag22B[] Tag22B_FinancialCentre_B2
        {
          get
          {
            return this.FinancialCentre_B2_22B;
          }
        }

        internal SequenceB2Class(SwiftElement parent, int index, bool createTags)
          : base(parent, index, createTags)
        {
        }

        public MT340.SequenceBClass.SequenceB2Class.Tag22B AddFinancialCentre_B2_22B()
        {
          return new MT340.SequenceBClass.SequenceB2Class.Tag22B((SwiftElement) this, this.FinancialCentre_B2_22B.Length, (SwiftDefinitionElement) MT340.U0015U0002)
          {
            Value = string.Empty
          };
        }

        public void RemoveFinancialCentre_B2_22B(MT340.SequenceBClass.SequenceB2Class.Tag22B tag)
        {
          this.RemoveTag(tag.GetTag());
        }

        public class Tag17F : SwiftTagWrapper
        {
          public string Value
          {
            get
            {
              return this.GetValue();
            }
            set
            {
              this.SetValue("17F", value);
            }
          }

          internal Tag17F(SwiftElement parent, int index, SwiftDefinitionElement definition)
            : base(parent, index, definition)
          {
          }
        }

        public class Tag22B : SwiftTagWrapper
        {
          public string Value
          {
            get
            {
              return this.GetValue();
            }
            set
            {
              this.SetValue("22B", value);
            }
          }

          internal Tag22B(SwiftElement parent, int index, SwiftDefinitionElement definition)
            : base(parent, index, definition)
          {
          }
        }
      }
    }

    public class SequenceCClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT340.U0017U0002;
        }
      }

      [Description("New Sequence")]
      public Tag15C NewSequence_C_15C
      {
        get
        {
          return new Tag15C((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0018U0002);
        }
      }

      [Description("New Sequence")]
      public Tag15C Tag15C_NewSequence_C
      {
        get
        {
          return this.NewSequence_C_15C;
        }
      }

      [Description("Delivery Agent")]
      public Tag53A DeliveryAgent_C_53A
      {
        get
        {
          return new Tag53A((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U001BU0002);
        }
      }

      [Description("Delivery Agent")]
      public Tag53A Tag53A_DeliveryAgent_C
      {
        get
        {
          return this.DeliveryAgent_C_53A;
        }
      }

      [Description("Delivery Agent")]
      public Tag53D DeliveryAgent_C_53D
      {
        get
        {
          return new Tag53D((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U001EU0002);
        }
      }

      [Description("Delivery Agent")]
      public Tag53D Tag53D_DeliveryAgent_C
      {
        get
        {
          return this.DeliveryAgent_C_53D;
        }
      }

      [Description("Delivery Agent")]
      public Tag53J DeliveryAgent_C_53J
      {
        get
        {
          return new Tag53J((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0080U0002);
        }
      }

      [Description("Delivery Agent")]
      public Tag53J Tag53J_DeliveryAgent_C
      {
        get
        {
          return this.DeliveryAgent_C_53J;
        }
      }

      [Description("Intermediary 2")]
      public Tag86A Intermediary2_C_86A
      {
        get
        {
          return new Tag86A((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0082U0002);
        }
      }

      [Description("Intermediary 2")]
      public Tag86A Tag86A_Intermediary2_C
      {
        get
        {
          return this.Intermediary2_C_86A;
        }
      }

      [Description("Intermediary 2")]
      public Tag86D Intermediary2_C_86D
      {
        get
        {
          return new Tag86D((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0086U0002);
        }
      }

      [Description("Intermediary 2")]
      public Tag86D Tag86D_Intermediary2_C
      {
        get
        {
          return this.Intermediary2_C_86D;
        }
      }

      [Description("Intermediary 2")]
      public Tag86J Intermediary2_C_86J
      {
        get
        {
          return new Tag86J((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0089U0002);
        }
      }

      [Description("Intermediary 2")]
      public Tag86J Tag86J_Intermediary2_C
      {
        get
        {
          return this.Intermediary2_C_86J;
        }
      }

      [Description("Intermediary")]
      public Tag56A Intermediary_C_56A
      {
        get
        {
          return new Tag56A((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U008BU0002);
        }
      }

      [Description("Intermediary")]
      public Tag56A Tag56A_Intermediary_C
      {
        get
        {
          return this.Intermediary_C_56A;
        }
      }

      [Description("Intermediary")]
      public Tag56D Intermediary_C_56D
      {
        get
        {
          return new Tag56D((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U008EU0002);
        }
      }

      [Description("Intermediary")]
      public Tag56D Tag56D_Intermediary_C
      {
        get
        {
          return this.Intermediary_C_56D;
        }
      }

      [Description("Intermediary ")]
      public Tag56J Intermediary_C_56J
      {
        get
        {
          return new Tag56J((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0091U0002);
        }
      }

      [Description("Intermediary ")]
      public Tag56J Tag56J_Intermediary_C
      {
        get
        {
          return this.Intermediary_C_56J;
        }
      }

      [Description("Receiving Agent")]
      public Tag57A ReceivingAgent_C_57A
      {
        get
        {
          return new Tag57A((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0093U0002);
        }
      }

      [Description("Receiving Agent")]
      public Tag57A Tag57A_ReceivingAgent_C
      {
        get
        {
          return this.ReceivingAgent_C_57A;
        }
      }

      [Description("Receiving Agent")]
      public Tag57D ReceivingAgent_C_57D
      {
        get
        {
          return new Tag57D((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0096U0002);
        }
      }

      [Description("Receiving Agent")]
      public Tag57D Tag57D_ReceivingAgent_C
      {
        get
        {
          return this.ReceivingAgent_C_57D;
        }
      }

      [Description("Receiving Agent")]
      public Tag57J ReceivingAgent_C_57J
      {
        get
        {
          return new Tag57J((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0099U0002);
        }
      }

      [Description("Receiving Agent")]
      public Tag57J Tag57J_ReceivingAgent_C
      {
        get
        {
          return this.ReceivingAgent_C_57J;
        }
      }

      [Description("Beneficiary Institution")]
      public Tag58A BeneficiaryInstitution_C_58A
      {
        get
        {
          return new Tag58A((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U009BU0002);
        }
      }

      [Description("Beneficiary Institution")]
      public Tag58A Tag58A_BeneficiaryInstitution_C
      {
        get
        {
          return this.BeneficiaryInstitution_C_58A;
        }
      }

      [Description("Beneficiary Institution")]
      public Tag58D BeneficiaryInstitution_C_58D
      {
        get
        {
          return new Tag58D((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U009EU0002);
        }
      }

      [Description("Beneficiary Institution")]
      public Tag58D Tag58D_BeneficiaryInstitution_C
      {
        get
        {
          return this.BeneficiaryInstitution_C_58D;
        }
      }

      [Description("Beneficiary Institution")]
      public Tag58J BeneficiaryInstitution_C_58J
      {
        get
        {
          return new Tag58J((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0002U0003);
        }
      }

      [Description("Beneficiary Institution")]
      public Tag58J Tag58J_BeneficiaryInstitution_C
      {
        get
        {
          return this.BeneficiaryInstitution_C_58J;
        }
      }

      internal SequenceCClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }
    }

    public class SequenceDClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT340.U0004U0003;
        }
      }

      [Description("New Sequence")]
      public Tag15D NewSequence_D_15D
      {
        get
        {
          return new Tag15D((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0005U0003);
        }
      }

      [Description("New Sequence")]
      public Tag15D Tag15D_NewSequence_D
      {
        get
        {
          return this.NewSequence_D_15D;
        }
      }

      [Description("Delivery Agent")]
      public Tag53A DeliveryAgent_D_53A
      {
        get
        {
          return new Tag53A((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0008U0003);
        }
      }

      [Description("Delivery Agent")]
      public Tag53A Tag53A_DeliveryAgent_D
      {
        get
        {
          return this.DeliveryAgent_D_53A;
        }
      }

      [Description("Delivery Agent")]
      public Tag53D DeliveryAgent_D_53D
      {
        get
        {
          return new Tag53D((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0010U0003);
        }
      }

      [Description("Delivery Agent")]
      public Tag53D Tag53D_DeliveryAgent_D
      {
        get
        {
          return this.DeliveryAgent_D_53D;
        }
      }

      [Description("Delivery Agent")]
      public Tag53J DeliveryAgent_D_53J
      {
        get
        {
          return new Tag53J((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0013U0003);
        }
      }

      [Description("Delivery Agent")]
      public Tag53J Tag53J_DeliveryAgent_D
      {
        get
        {
          return this.DeliveryAgent_D_53J;
        }
      }

      [Description("Intermediary 2")]
      public Tag86A Intermediary2_D_86A
      {
        get
        {
          return new Tag86A((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0015U0003);
        }
      }

      [Description("Intermediary 2")]
      public Tag86A Tag86A_Intermediary2_D
      {
        get
        {
          return this.Intermediary2_D_86A;
        }
      }

      [Description("Intermediary 2")]
      public Tag86D Intermediary2_D_86D
      {
        get
        {
          return new Tag86D((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0018U0003);
        }
      }

      [Description("Intermediary 2")]
      public Tag86D Tag86D_Intermediary2_D
      {
        get
        {
          return this.Intermediary2_D_86D;
        }
      }

      [Description("Intermediary 2")]
      public Tag86J Intermediary2_D_86J
      {
        get
        {
          return new Tag86J((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U001BU0003);
        }
      }

      [Description("Intermediary 2")]
      public Tag86J Tag86J_Intermediary2_D
      {
        get
        {
          return this.Intermediary2_D_86J;
        }
      }

      [Description("Intermediary")]
      public Tag56A Intermediary_D_56A
      {
        get
        {
          return new Tag56A((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U001DU0003);
        }
      }

      [Description("Intermediary")]
      public Tag56A Tag56A_Intermediary_D
      {
        get
        {
          return this.Intermediary_D_56A;
        }
      }

      [Description("Intermediary")]
      public Tag56D Intermediary_D_56D
      {
        get
        {
          return new Tag56D((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U007FU0003);
        }
      }

      [Description("Intermediary")]
      public Tag56D Tag56D_Intermediary_D
      {
        get
        {
          return this.Intermediary_D_56D;
        }
      }

      [Description("Intermediary ")]
      public Tag56J Intermediary_D_56J
      {
        get
        {
          return new Tag56J((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0082U0003);
        }
      }

      [Description("Intermediary ")]
      public Tag56J Tag56J_Intermediary_D
      {
        get
        {
          return this.Intermediary_D_56J;
        }
      }

      [Description("Receiving Agent")]
      public Tag57A ReceivingAgent_D_57A
      {
        get
        {
          return new Tag57A((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0084U0003);
        }
      }

      [Description("Receiving Agent")]
      public Tag57A Tag57A_ReceivingAgent_D
      {
        get
        {
          return this.ReceivingAgent_D_57A;
        }
      }

      [Description("Receiving Agent")]
      public Tag57D ReceivingAgent_D_57D
      {
        get
        {
          return new Tag57D((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0088U0003);
        }
      }

      [Description("Receiving Agent")]
      public Tag57D Tag57D_ReceivingAgent_D
      {
        get
        {
          return this.ReceivingAgent_D_57D;
        }
      }

      [Description("Receiving Agent")]
      public Tag57J ReceivingAgent_D_57J
      {
        get
        {
          return new Tag57J((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U008BU0003);
        }
      }

      [Description("Receiving Agent")]
      public Tag57J Tag57J_ReceivingAgent_D
      {
        get
        {
          return this.ReceivingAgent_D_57J;
        }
      }

      [Description("Beneficiary Institution")]
      public Tag58A BeneficiaryInstitution_D_58A
      {
        get
        {
          return new Tag58A((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U008DU0003);
        }
      }

      [Description("Beneficiary Institution")]
      public Tag58A Tag58A_BeneficiaryInstitution_D
      {
        get
        {
          return this.BeneficiaryInstitution_D_58A;
        }
      }

      [Description("Beneficiary Institution")]
      public Tag58D BeneficiaryInstitution_D_58D
      {
        get
        {
          return new Tag58D((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0090U0003);
        }
      }

      [Description("Beneficiary Institution")]
      public Tag58D Tag58D_BeneficiaryInstitution_D
      {
        get
        {
          return this.BeneficiaryInstitution_D_58D;
        }
      }

      [Description("Beneficiary Institution")]
      public Tag58J BeneficiaryInstitution_D_58J
      {
        get
        {
          return new Tag58J((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0093U0003);
        }
      }

      [Description("Beneficiary Institution")]
      public Tag58J Tag58J_BeneficiaryInstitution_D
      {
        get
        {
          return this.BeneficiaryInstitution_D_58J;
        }
      }

      internal SequenceDClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }
    }

    public class SequenceEClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT340.U0095U0003;
        }
      }

      [Description("New Sequence")]
      public Tag15E NewSequence_E_15E
      {
        get
        {
          return new Tag15E((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0096U0003);
        }
      }

      [Description("New Sequence")]
      public Tag15E Tag15E_NewSequence_E
      {
        get
        {
          return this.NewSequence_E_15E;
        }
      }

      [Description("Contact Information")]
      public Tag29A ContactInformation_E_29A
      {
        get
        {
          return new Tag29A((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0098U0003);
        }
      }

      [Description("Contact Information")]
      public Tag29A Tag29A_ContactInformation_E
      {
        get
        {
          return this.ContactInformation_E_29A;
        }
      }

      [Description("Dealing Method")]
      public Tag24D DealingMethod_E_24D
      {
        get
        {
          return new Tag24D((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0099U0003);
        }
      }

      [Description("Dealing Method")]
      public Tag24D Tag24D_DealingMethod_E
      {
        get
        {
          return this.DealingMethod_E_24D;
        }
      }

      [Description("Broker Identification")]
      public Tag88A BrokerIdentification_E_88A
      {
        get
        {
          return new Tag88A((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U009EU0003);
        }
      }

      [Description("Broker Identification")]
      public Tag88A Tag88A_BrokerIdentification_E
      {
        get
        {
          return this.BrokerIdentification_E_88A;
        }
      }

      [Description("Broker Identification")]
      public Tag88D BrokerIdentification_E_88D
      {
        get
        {
          return new Tag88D((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0002U0004);
        }
      }

      [Description("Broker Identification")]
      public Tag88D Tag88D_BrokerIdentification_E
      {
        get
        {
          return this.BrokerIdentification_E_88D;
        }
      }

      [Description("Brokers Commission")]
      public Tag71F BrokersCommission_E_71F
      {
        get
        {
          return new Tag71F((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0005U0004);
        }
      }

      [Description("Brokers Commission")]
      public Tag71F Tag71F_BrokersCommission_E
      {
        get
        {
          return this.BrokersCommission_E_71F;
        }
      }

      [Description("Brokers Reference")]
      public Tag21G BrokersReference_E_21G
      {
        get
        {
          return new Tag21G((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0008U0004);
        }
      }

      [Description("Brokers Reference")]
      public Tag21G Tag21G_BrokersReference_E
      {
        get
        {
          return this.BrokersReference_E_21G;
        }
      }

      [Description("Sender To Receiver Information")]
      public Tag72 SenderToReceiverInformation_E_72
      {
        get
        {
          return new Tag72((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U000FU0004);
        }
      }

      [Description("Sender To Receiver Information")]
      public Tag72 Tag72_SenderToReceiverInformation_E
      {
        get
        {
          return this.SenderToReceiverInformation_E_72;
        }
      }

      internal SequenceEClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }
    }

    public class SequenceIClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT340.U0016U0004;
        }
      }

      [Description("New Sequence")]
      public Tag15F NewSequence_F_15F
      {
        get
        {
          return new Tag15F((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0017U0004);
        }
      }

      [Description("New Sequence")]
      public Tag15F Tag15F_NewSequence_F
      {
        get
        {
          return this.NewSequence_F_15F;
        }
      }

      [Description("Number of Repetitions")]
      public Tag18A NumberofRepetitions_F_18A
      {
        get
        {
          return new Tag18A((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0019U0004);
        }
      }

      [Description("Number of Repetitions")]
      public Tag18A Tag18A_NumberofRepetitions_F
      {
        get
        {
          return this.NumberofRepetitions_F_18A;
        }
      }

      [Description("Payment Date")]
      public MT340.SequenceIClass.SequenceClass[] Sequence
      {
        get
        {
          int index = -1;
          List<MT340.SequenceIClass.SequenceClass> list = new List<MT340.SequenceIClass.SequenceClass>();
          int count;
          do
          {
            ++index;
            MT340.SequenceIClass.SequenceClass sequenceClass = new MT340.SequenceIClass.SequenceClass((SwiftElement) this, index, false);
            count = this.ListTags((SwiftElement) sequenceClass).Count;
            if (count > 0)
              list.Add(sequenceClass);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Delivery Agent")]
      public Tag53A DeliveryAgent_F_53A
      {
        get
        {
          return new Tag53A((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0080U0004);
        }
      }

      [Description("Delivery Agent")]
      public Tag53A Tag53A_DeliveryAgent_F
      {
        get
        {
          return this.DeliveryAgent_F_53A;
        }
      }

      [Description("Delivery Agent")]
      public Tag53D DeliveryAgent_F_53D
      {
        get
        {
          return new Tag53D((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0083U0004);
        }
      }

      [Description("Delivery Agent")]
      public Tag53D Tag53D_DeliveryAgent_F
      {
        get
        {
          return this.DeliveryAgent_F_53D;
        }
      }

      [Description("Delivery Agent")]
      public Tag53J DeliveryAgent_F_53J
      {
        get
        {
          return new Tag53J((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0087U0004);
        }
      }

      [Description("Delivery Agent")]
      public Tag53J Tag53J_DeliveryAgent_F
      {
        get
        {
          return this.DeliveryAgent_F_53J;
        }
      }

      [Description("Intermediary 2")]
      public Tag86A Intermediary2_F_86A
      {
        get
        {
          return new Tag86A((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0089U0004);
        }
      }

      [Description("Intermediary 2")]
      public Tag86A Tag86A_Intermediary2_F
      {
        get
        {
          return this.Intermediary2_F_86A;
        }
      }

      [Description("Intermediary 2")]
      public Tag86D Intermediary2_F_86D
      {
        get
        {
          return new Tag86D((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U008CU0004);
        }
      }

      [Description("Intermediary 2")]
      public Tag86D Tag86D_Intermediary2_F
      {
        get
        {
          return this.Intermediary2_F_86D;
        }
      }

      [Description("Intermediary 2")]
      public Tag86J Intermediary2_F_86J
      {
        get
        {
          return new Tag86J((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U008FU0004);
        }
      }

      [Description("Intermediary 2")]
      public Tag86J Tag86J_Intermediary2_F
      {
        get
        {
          return this.Intermediary2_F_86J;
        }
      }

      [Description("Intermediary")]
      public Tag56A Intermediary_F_56A
      {
        get
        {
          return new Tag56A((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0091U0004);
        }
      }

      [Description("Intermediary")]
      public Tag56A Tag56A_Intermediary_F
      {
        get
        {
          return this.Intermediary_F_56A;
        }
      }

      [Description("Intermediary")]
      public Tag56D Intermediary_F_56D
      {
        get
        {
          return new Tag56D((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0094U0004);
        }
      }

      [Description("Intermediary")]
      public Tag56D Tag56D_Intermediary_F
      {
        get
        {
          return this.Intermediary_F_56D;
        }
      }

      [Description("Intermediary")]
      public Tag56J Intermediary_F_56J
      {
        get
        {
          return new Tag56J((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0097U0004);
        }
      }

      [Description("Intermediary")]
      public Tag56J Tag56J_Intermediary_F
      {
        get
        {
          return this.Intermediary_F_56J;
        }
      }

      [Description("Receiving Agent")]
      public Tag57A ReceivingAgent_F_57A
      {
        get
        {
          return new Tag57A((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U0099U0004);
        }
      }

      [Description("Receiving Agent")]
      public Tag57A Tag57A_ReceivingAgent_F
      {
        get
        {
          return this.ReceivingAgent_F_57A;
        }
      }

      [Description("Receiving Agent")]
      public Tag57D ReceivingAgent_F_57D
      {
        get
        {
          return new Tag57D((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U009CU0004);
        }
      }

      [Description("Receiving Agent")]
      public Tag57D Tag57D_ReceivingAgent_F
      {
        get
        {
          return this.ReceivingAgent_F_57D;
        }
      }

      [Description("Receiving Agent")]
      public Tag57J ReceivingAgent_F_57J
      {
        get
        {
          return new Tag57J((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U009FU0004);
        }
      }

      [Description("Receiving Agent")]
      public Tag57J Tag57J_ReceivingAgent_F
      {
        get
        {
          return this.ReceivingAgent_F_57J;
        }
      }

      internal SequenceIClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public MT340.SequenceIClass.SequenceClass AddSequence()
      {
        return new MT340.SequenceIClass.SequenceClass((SwiftElement) this, this.Sequence.Length, true);
      }

      public void RemoveSequence(MT340.SequenceIClass.SequenceClass sequence)
      {
        foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
          this.RemoveTag(tag);
      }

      public class SequenceClass : SwiftTagSequence
      {
        internal override SwiftDefinitionElement Definition
        {
          get
          {
            return (SwiftDefinitionElement) MT340.U001BU0004;
          }
        }

        [Description("Payment Date")]
        public Tag30F PaymentDate_F_30F
        {
          get
          {
            return new Tag30F((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U001CU0004);
          }
        }

        [Description("Payment Date")]
        public Tag30F Tag30F_PaymentDate_F
        {
          get
          {
            return this.PaymentDate_F_30F;
          }
        }

        [Description("Currency, Payment Amount ")]
        public Tag32H CurrencyPaymentAmount_F_32H
        {
          get
          {
            return new Tag32H((SwiftElement) this, 0, (SwiftDefinitionElement) MT340.U001EU0004);
          }
        }

        [Description("Currency, Payment Amount ")]
        public Tag32H Tag32H_CurrencyPaymentAmount_F
        {
          get
          {
            return this.CurrencyPaymentAmount_F_32H;
          }
        }

        internal SequenceClass(SwiftElement parent, int index, bool createTags)
          : base(parent, index, createTags)
        {
        }
      }
    }
  }
}
